<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>参与人员详细信息</title>
    <%@ include file="/common/meta.jsp"%>
    <script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
    <script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>
    <script type="text/javascript" src="${res}/js/autodisckey/autodisckey.js"></script>

    <style type="text/css">
        .input_width { width:130px }
        .select_width { width:143px }
        .table_td td {border:0}
        .long_input{ width:642px }
        .selectWidth4{width:624px;}
    </style>
    <script type="text/javascript">
        var type = "${param.type}";
        var parentTable = parent.$("#"+"${param.parentTab}");	//父页面的表格
        var selectRadio = $();									//父页面选中的单选框
        var selectTr = $();										//父页面选中的行

        if(type=="edit") {
            selectRadio = parentTable.find(":radio:checked");
            selectTr = selectRadio.parents("tr");
        }

        $(function(){
            $("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
            $("#fragment-tab1 select").addClass("select_width");

            var submitpsn=selectTr.find("[name$='submit_psn']");//标示是否是申报人
            var isAdminor=false;//根据权限判断是否是单位管理员
            <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
            isAdminor = true;
            </security:authorize>




            if(type=="edit"){

                $("input:not(:radio:button),textarea").each(function(){

                    var id=$(this).attr("name");
                    if(id==null || id=="")
                        return true;

                    var parentObj=selectTr.find("[name$='/"+id+"']");
                    var value="";
                    if(parentObj.is("span"))
                        value=parentObj.text();
                    else
                        value=parentObj.val();
                    //if($(this).is("input"))//初始化input框 不包括radio
                    $(this).val(value);
                });

                $(":radio").each(function(){//初始化radio框
                    var name=$(this).attr("name");


                    var value=$("[name='"+name+"_value']").val();
                    if($(this).val()==value)
                        $(this).attr("checked",true);

                });
                tree();
                changeCardType();

                if(submitpsn.length>0 && submitpsn.val()=="1"){//如果是申报人
                    //如果不是单位管理员
                    if (!isAdminor) {
                        $("input,select").each(function(){
                            if(!$(this).attr("class")||$(this).attr("class").indexOf("notdisabled")==-1)
                                $(this).attr("disabled","true");
                        });
                        $("#submit_psn_note").show();//如果是项目负责人，显示如何修改个人信息提示

                        $("span[name='req_submitpsn']").show();//“通讯地址”申请人为必填
                        $("input[name='address']").addClass("required");

                        $("a,img").removeAttr("onclick");

                        parent.$("#TB_ajaxWindowTitle").html("编辑申请人信息");
                    } else {
                        parent.$("#TB_ajaxWindowTitle").html("设置项目负责人");
                        $("input[name='zh_name']").attr("disabled", "disabled");
                    }
                } else {
                    $("#personSelect").hide();
                }
            } else {
                $("#personSelect").hide();
            }

            function savePsn(){
                //填写检查接口
                ages();
                saveResearch("researchTbl");
                validate($("#fragment-tab1"),"");
                if(!valResult()){
                    irisValShowMsg($("#savePsn"));
                    return false;
                }




                //添加新行
                if(type=="add") {
                    addNewRowDeal(parentTable);
//			parent.countPsnNum('zh_persons,researchs','psncnt_total');
                }

                $("input:not(:radio:button),textarea").each(function(){

                    var id=$(this).attr("name");
                    var parentObj=null;

                    if(id==null || id=="")
                        return true;

                    //获得父页面的对象
                    if(type=="add"){
                        parentObj=parentTable.find("tr:last-child").find("[name$='/"+id+"']");
                    }else if(type=="edit"){
                        parentObj=selectTr.find("[name$='/"+id+"']");

                    }

                    if(parentObj!=null){
                        if(parentObj.is("span")){
                            parentObj.text($(this).val());	//将值写回父页面
                        }
                        else{
                            parentObj.val($(this).val());
                        }
                    }

                });

                if(type=="add"){
                    parentTable.find("tr:last :radio").attr("checked",true);
                    if("${param.parentTab}"=="zh_persons")
                        parent.setSubmitPsn();
                }

                if(submitpsn.length>0 && submitpsn.val()=="1"){//如果是申报人
                    parent.synFzrMsg(0);
                    parent.psnSynchro();
                }

                //if(confirm("保存成功，是否返回申请书页面"))
                //	parent.tb_remove();
                //else
                $(".wBox_popup").hide();
                if(confirm("保存成功，是否返回申请书页面")){
                    <security:authorize ifAnyGranted="A_MENU_MANAGE_19">
                    parent.$("#depart_code").val($("#depart_code").val());//部门信息
                    </security:authorize>
                    parent.tb_remove();

                }

                else if(type=="add"){
                    type = "edit";
                    selectRadio = parentTable.find(":radio:checked");	//父页面选中的单选框
                    selectTr = selectRadio.parents("tr");				//父页面选中的行
                }
            }

            $("#savePsn").click(function(){
                setTimeout(savePsn,100);
            });


            <security:authorize ifAnyGranted="A_MENU_MANAGE_19">
            $("#depart_code").val(parent.$("#depart_code").val());//初始化部门信息
            </security:authorize>

        });

        function tree(){
            // var prof_title_value=$("#prof_title_value").val();
            var prof_title_name=$("#prof_title_name").val();
            // var str ="{'id':'"+prof_title_value+"','name':'"+prof_title_name+"'}";
            $("#prof_title").val(prof_title_name);

            var subject_name=$("#subject_name").val();
            // var str ="{'id':'"+prof_title_value+"','name':'"+prof_title_name+"'}";
            $("#subject").val(subject_name);


            var discipline_name=$("#discipline_name").val();
            // var str ="{'id':'"+prof_title_value+"','name':'"+prof_title_name+"'}";
            $("#discipline").val(discipline_name);

        }

        function loadAjaxSelect(selectId,url,params,varParm){
            $.ajax( {
                url : url,
                type : 'post',
                dataType:'json',
                data : params,
                success : function(data) {

                    for(var i=0;i<data.length;i++){
                        var value=data[i].id;
                        var text=data[i].name;
                        $("#"+selectId).append("<option value='"+value+"'>"+text+"</option>");


                    }
                    if(type=="edit"){//如果是修改，才需要初始化select框的值
                        var selectValue=$("[name='"+selectId+"_value']").val();
                        $("#"+selectId+" option").each(function(i,obj){
                            if($(obj).val()==selectValue){
                                setTimeout(function() {
                                    $(obj).attr("selected",true);
                                }, 1);
                            }
                        });
                    }

                    setDegree();
                }
            });
        }
        function initControlValue(objId){

            var name="";
            var obj=$("#"+objId);
            if(obj.is("select")){
                name=obj.attr("name");
                obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
                $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
            }

            else if(obj.is(":radio")){
                name=obj.attr("name");
                if(obj.is(":checked")){//如果被选中
                    //alert($("#"+objId).val());
                    obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
                    $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
                }
                else{

                    obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
                }
            }else if(obj.is(":checkbox")){
                name=obj.attr("name");
                if(obj.is(":checked"))//如果被选中
                    obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
                else
                    obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
            }else{
                name=obj.attr("id");
                obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
                obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
            }
        }

        function setDegree(){

            var degreeText=$("#degree").children("option").filter(":selected").text();

            if(degreeText=="博士"){
                $("#degree_country_required").show();
                $("#degree_year_required").show();
                var itemClass=$("#degree_country").attr("class");
                if(itemClass.indexOf("required")==-1)
                    $("#degree_country_value").addClass("required");
                $("#degree_year").addClass("required");
            }else{//关闭最高学位验证
                $("#degree_country_required").hide();
                $("#degree_year_required").hide();
                $("#degree_country_value").removeClass("required");
                $("#degree_year").removeClass("required");
            }
        }

        function changeCardType(){
            var cardTypeObj = $("[name='card_type_value']");
            var cardCodeObj = $("[name='card_code']");
            var mobile = $("#mobile");

            if(cardTypeObj.val()=="1"){
                cardCodeObj.addClass("idCard");
                mobile.addClass("mobile");
                //cardCodeObj.attr("label","身份证");
            } else {
                cardCodeObj.removeClass("idCard");
                mobile.removeClass("mobile");
                //cardCodeObj.attr("label","证件号码");
            }
        }

        //选择项目负责人回调
        function selectPsnCall(data) {
            $(parent.document).find("input[name$='psn_code']").val(data.person.psnCode);
            $("input[name='zh_name']").val(data.person.zhName);
            var gender_value = "";
            if (data.personExtend.basic_info.gender_value=='F') {
                $("input[name='gender'][value='F']").attr("checked",true);
                gender_value = "F";
            } else {
                $("input[name='gender'][value='M']").attr("checked",true);
                gender_value = "M";
            }
            $("input[name='gender_value']").val(gender_value);
            $("#card_type").val(data.personExtend.basic_info.card_type_value);
            $("input[name='card_type_value']").val(data.personExtend.basic_info.card_type_value);
            $("input[name='card_type_name']").val(data.personExtend.basic_info.card_type_name);
            $("input[name='card_code']").val(data.personExtend.basic_info.card_code);
            $("#ethnicity").val(data.personExtend.basic_info.ethnicity_value);
            $("input[name='ethnicity_value']").val(data.personExtend.basic_info.ethnicity_value);
            $("input[name='ethnicity_name']").val(data.personExtend.basic_info.ethnicity_name);
            $("#region").val(data.personExtend.basic_info.region_value);
            $("input[name='region_value']").val(data.personExtend.basic_info.region_value);
            $("input[name='region_name']").val(data.personExtend.basic_info.region_name);
            $("#org").val(data.personExtend.basic_info.org_name);
            $("input[name='org_code']").val(data.person.orgCode);
            $("#prof_title").val(data.personExtend.basic_info.prof_title_name);
            $("input[name='prof_title_value']").val(data.personExtend.basic_info.prof_title_value);
            $("input[name='prof_title_name']").val(data.personExtend.basic_info.prof_title_name);

            $("#gender").val(data.personExtend.basic_info.gender_name);
            $("input[name='gender_value']").val(data.personExtend.basic_info.gender_value);
            $("input[name='gender_name']").val(data.personExtend.basic_info.gender_name);


            $("input[name='position']").val(data.personExtend.basic_info.position);
            $("input[name='birthday']").val(data.personExtend.basic_info.birthday);
            $("input[name='tel_work']").val(data.personExtend.contact.tel_work);
            $("#degree").val(data.personExtend.basic_info.degree_value);
            $("input[name='degree_value']").val(data.personExtend.basic_info.degree_value);
            $("input[name='degree_name']").val(data.personExtend.basic_info.degree_name);
            $("#degree_country").val(data.personExtend.basic_info.degree_country_value);
            $("input[name='degree_country_value']").val(data.personExtend.basic_info.degree_country_value);
            $("input[name='degree_country_name']").val(data.personExtend.basic_info.degree_country_name);
            $("input[name='degree_college']").val(data.personExtend.basic_info.degree_college);
            $("input[name='degree_year']").val(data.personExtend.basic_info.degree_year);
            $("#academician").val(data.personExtend.basic_info.academician_value);
            $("input[name='academician_value']").val(data.personExtend.basic_info.academician_value);
            $("input[name='academician_name']").val(data.personExtend.basic_info.academician_name);
            $("#post_doctor").val(data.personExtend.basic_info.post_doctor_value);
            $("input[name='post_doctor_value']").val(data.personExtend.basic_info.post_doctor_value);
            $("input[name='post_doctor_name']").val(data.personExtend.basic_info.post_doctor_name);
            $("input[name='email']").val(data.personExtend.contact.email);
            $("input[name='mobile']").val(data.personExtend.contact.mobile);
            $("#educate").val(data.personExtend.basic_info.educate_value);
            $("input[name='educate_value']").val(data.personExtend.basic_info.educate_value);
            $("input[name='educate_name']").val(data.personExtend.basic_info.educate_name);
            $("input[name='subject_code']").val(data.personExtend.basic_info.subject_code);
            $("input[name='subject_name']").val(data.personExtend.basic_info.subject_name);
            $("input[name='discipline_code']").val(data.personExtend.basic_info.discipline_code);
            $("input[name='discipline_name']").val(data.personExtend.basic_info.discipline_name);
            tree();
            $("input[name='major_work']").val(data.personExtend.contact.major_work);
            $("input[name='major']").val(data.personExtend.contact.major);
            <security:authorize ifAnyGranted="A_MENU_MANAGE_19">
            $("#depart_code").val(data.person.deptCode);
            </security:authorize>

            tb_remove2();
        }



        function   ages(){
            var str = $("#birthday").val();
            var   r   =   str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
            if(r==null)return   false;
            var   d=   new   Date(r[1],   r[3]-1,   r[4]);
            if(d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]){
                var   Y   =   new   Date().getFullYear();
                $("#age").val(Y-r[1]);
            }

            return("输入的日期格式错误！");
        }
    </script>
    <script type="text/javascript">
        function initTreeValueExt(treeId, treeNode) {

            if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
                scmWarn($("#" + treeId).attr("label") + messageTip.researchAreaInvalidDisciplineCode);
                if (treeNode.level == 0) {
                    $("#" + treeId).val("");
                    $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
                    $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
                    $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
                }

                return false;
            }


            var str = treeNode.name;
            var obj = treeNode.parentNode;
            while (obj != null) {
                obj = obj.parentNode;
            }

            $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(treeNode.id);
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val(treeNode.id);
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(str);

        }
        /*
        $(function(){
            initControl11();
            $("#tab1").click();
            $("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
            $("#fragment-tab1 select").addClass("select_width");

            $("table.t_css").each(function(){
                $(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
                $(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
            });
            }); */
    </script>
</head>
<body>

<div id="tabnav">
    <ul>
        <li class="down" id="tab1" onclick="changeTab(this.id)">
            <a href="###"><span>个人信息</span></a>
        </li>
    </ul>
</div>

<div class="tab_box" id="fragment-tab1">
    <table class="t_css" width="100%" border="0" cellpadding="0" label="个人信息" cellspacing="1">
        <col style="width: 20%" />
        <col style="width: 30%" />
        <col style="width: 20%" />
        <col style="width: 30%" />
        <security:authorize ifAnyGranted="A_MENU_MANAGE_19">
            <input type="hidden" name="depart_code" id="depart_code"  value="" >
        </security:authorize>



        <tr>
            <td nowrap align="right"><c:if test="${param.parentTab=='zh_persons'}" ><span class="color_red">*</span></c:if>姓名：</td>
            <td width="350px">
                <input name="zh_name" label="姓名" type="text" <c:choose><c:when test="${param.parentTab=='zh_persons'}" >required class="input_text required maxlength:25" </c:when><c:otherwise> class="input_text  maxlength:25" </c:otherwise></c:choose> value="" maxlength="25"/>
                <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
					<span id="personSelect">
					<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置项目负责人">
					<cpt:personSelect key="personSelect" addRole="3" psnCode="${param.psnCode }" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
					</span>
                </security:authorize>
            </td>
            <%-- <td align="right">

                <c:if test="${param.parentTab=='zh_persons'}" ><span class="color_red">*</span></c:if>性别：
            </td> --%>

            <td align="right"><span class="color_red">*</span>性别：</td>
            <td>



                <cpt:select key="gender1" cacheable="false"   value="" id="gender" name="gender"    onChange="initControlValue(this.id)"   label="性别" />
                <input type="hidden" id="gender_value" name="gender_value" value="" class="required"  label="性别"/>
                <input type="hidden" id="gender_name" name="gender_name" value="" />

            </td>
        </tr>

        <%-- <tr>
            <td align="right">
                <c:if test="${param.parentTab=='zh_persons'}" >
                    <span class="color_red">*</span>
                </c:if>证件类型：
            </td>
            <td>
                <c:choose>
                    <c:when test="${param.parentTab=='zh_persons'}" >
                        <cpt:select id="card_type" key="id_type_2"  onChange="initControlValue(this.id);changeCardType();"></cpt:select>
                    </c:when><c:otherwise>
                        <cpt:select id="card_type" key="id_type_2" onChange="initControlValue(this.id);changeCardType();"></cpt:select>
                    </c:otherwise>
                </c:choose>
                <input type="hidden" name="card_type_value" value="" label="证件类型" class="required"/>
                <input type="hidden" name="card_type_name" />
            </td>
            <td align="right">
                <c:if test="${param.parentTab=='zh_persons'}" >
                    <span class="color_red">*</span>
                </c:if>证件号码：
            </td>
            <td>
                <input type="text" name="card_code" label="证件号码" class="input_text<c:if test="${param.parentTab=='zh_persons'}" > required</c:if>" maxlength="30"/>
            </td>

        </tr> --%>
        <%-- <tr>
            <td align="right">
                <c:if test="${param.parentTab=='zh_persons'}" >
                    <span class="color_red">*</span>
                </c:if>民族：
            </td>
            <td>
                <c:choose>
                    <c:when test="${param.parentTab=='zh_persons'}" >
                        <cpt:select id="ethnicity"  key="nation"  onChange="initControlValue(this.id)"  cacheable="false"></cpt:select>
                    </c:when>
                    <c:otherwise>
                        <cpt:select id="ethnicity"  key="nation" onChange="initControlValue(this.id)"  cacheable="false"></cpt:select>
                    </c:otherwise>
                </c:choose>
                <input type="hidden" name="ethnicity_value" value="" label="民族" class="required">
                <input type="hidden" name="ethnicity_name" value="">
            </td>
            <td align="right">国别或地区：</td>
            <td>
                <cpt:select id="region"  key="country" onChange="initControlValue(this.id)"></cpt:select>
                <input type="hidden" name="region_value" value="" />
                <input type="hidden" name="region_name" value="" />
            </td>
        </tr> --%>

        <c:choose>
            <c:when test="${param.parentTab=='zh_persons'}">
                <tr>
                    <td align="right"><span class="color_red">*</span>所在单位（全称）：</td>
                    <td colspan="4">
                        <cpt:autocomplete id="org" key="psnOrg" name="org_name" className="required long_input selectWidth4" label="所在单位" onClick="changeOrg" size="1" maxLength="100">
                        </cpt:autocomplete>
                        <input type="hidden" name="org_code"/>
                    </td>
                </tr>
            </c:when>
        </c:choose>

        <%-- <tr>
            <td align="right" nowrap><span class="color_red">*</span>科技部学科领域：</td>
            <td>

            <cpt:tree key="medically" cacheable="false" readonly="true" value="" id="subject" name="subject"  showPattern="all" shieldPattern="-1" onClick="initTreeValueExt"   label="国家科技部学科领域" />
            <input type="hidden" id="subject_code" name="subject_code" value="" class="required"  label="国家科技部学科领域"/>
            <input type="hidden" id="subject_name" name="subject_name" value="" />
            </td>
            <td align="right" nowrap><span class="color_red">*</span>国家基金委学科领域：</td>
            <td>

            <cpt:tree key="subject" cacheable="false" readonly="true" value="" id="discipline" name="discipline"  showPattern="all" shieldPattern="-1" onClick="initTreeValueExt"   label="国家基金委学科领域" />
            <input type="hidden" id="discipline_code" name="discipline_code" value="" class="required"  label="国家基金委学科领域"/>
            <input type="hidden" id="discipline_name" name="discipline_name" value="" />
            </td>
        </tr> --%>

        <tr>
            <td align="right"><span class="color_red">*</span>职称：</td>
            <td>

                <cpt:tree key="prof_title" cacheable="false" readonly="true" value="" id="prof_title" name="prof_title"  showPattern="all" shieldPattern="-1" onClick="initTreeValueExt"   label="职称" />
                <input type="hidden" id="prof_title_value" name="prof_title_value" value="" class="required"  label="职称"/>
                <input type="hidden" id="prof_title_name" name="prof_title_name" value="" />
            </td>
            <td align="right"><span class="color_red">*</span>职务：</td>
            <td>
                <input type="text" label="职务" name="position" class="required" maxlength="50"/>
            </td>
        </tr>
        <tr>
            <td align='right'>
                <span class="color_red">*</span>
                出生日期：
            </td>
            <td>
                <cpt:date id="birthday"  value="" className="required date beforeToday" label="出生日期"   name="birthday" ></cpt:date>
                <input type='hidden' name='age' id='age' value=""/>
            </td>
            <td align="right"><span class="color_red">*</span>工作电话：</td>
            <td>
                <input type="text" name="tel_work" maxlength="20" required class="required" label="工作电话" />
            </td>
        </tr>
        <%-- <tr>
            <td align="right"><span class="color_red" >*</span>最高学位：</td>
            <td>
                <cpt:select id="degree"  key="degree"  onChange="initControlValue(this.id);setDegree();"></cpt:select>
                <input type="hidden" name="degree_value" value="" label="最高学位" class="required">
                <input type="hidden" name="degree_name" value="">
            </td>
            <td align="right"><span id="degree_country_required"  class="color_red" style="display:none" >*</span> 授予国别或地区：</td>
            <td >
                <cpt:select id="degree_country" key="country" onChange="initControlValue(this.id)"></cpt:select>
                <input type="hidden" name="degree_country_value" id="degree_country_value" label="授予国别或地区"/>
                <input type="hidden" name="degree_country_name"/>
            </td>
        </tr> --%>
        <%-- <tr>
            <td align="right">授予学校：</td>
            <td>
                <input type="text" name="degree_college" maxlength="50" label="授予学校"/>
            </td>
            <td align="right"><span id="degree_year_required" class="color_red" style="display:none">*</span>授予年份：</td>
            <td>
                <input type="text" name="degree_year" id="degree_year" label="授予年份" onfocus="InitInput.setInt(this, 4)" maxlength="4" class="input_text year"/>
            </td>
        </tr>

        <tr>

            <td align="right">院士：</td>
            <td>
                <cpt:select id="academician" key="degreetype" onChange="initControlValue(this.id)"></cpt:select>
                <input type="hidden" name="academician_value" label="院士"/>
                <input type="hidden" name="academician_name"/>
            </td>
            <td align="right">博士后：</td>
            <td>
                <cpt:select id="post_doctor" key="doctortype" onChange="initControlValue(this.id)"></cpt:select>
                <input type="hidden" name="post_doctor_value" label="博士后" />
                <input type="hidden" name="post_doctor_name"/>
            </td>
        </tr> --%>
        <tr>
            <td align="right"><span class="color_red" >*</span>最高学位：</td>
            <td>
                <cpt:select id="degree"  key="degree"  onChange="initControlValue(this.id);setDegree();"></cpt:select>
                <input type="hidden" name="degree_value" value="" label="最高学位" class="required">
                <input type="hidden" name="degree_name" value="">
            </td>
            <td align="right"><span class="color_red">*</span>电子邮箱：</td>
            <td>
                <input type="text" name="email" required class="required email" label="电子邮箱" />
            </td>
            <%--<td align="right"><span id="degree_country_required"  class="color_red" style="display:none" >*</span> 授予国别或地区：</td>
            <td >
                <cpt:select id="degree_country" key="country" onChange="initControlValue(this.id)"></cpt:select>
                <input type="hidden" name="degree_country_value" id="degree_country_value" label="授予国别或地区"/>
                <input type="hidden" name="degree_country_name"/>
            </td>--%>
        </tr>
        <tr>

            <td align="right"><span class="color_red">*</span>学历：</td>
            <td>
                <cpt:select id="educate"  key="educate" onChange="initControlValue(this.id);"></cpt:select>
                <input type="hidden" name="educate_value"  class="required" value="" label="学历">
                <input type="hidden" name="educate_name" value="">
            </td>
            <td align="right"><span class="color_red">*</span>手机：</td>
            <td>
                <input type="text" id="mobile" name="mobile" maxlength="11" onfocus="InitInput.setNumber(this,11,0,0);" class="required mobile"   label="手机" />
            </td>
        </tr>
       <%-- <tr>
            <td align="right"><span class="color_red">*</span>电子邮箱：</td>
            <td>
                <input type="text" name="email" required class="required email" label="电子邮箱" />
            </td>
            <td align="right"><span class="color_red">*</span>手机：</td>
            <td>
                <input type="text" id="mobile" name="mobile" maxlength="11" onfocus="InitInput.setNumber(this,11,0,0);" class="required mobile"   label="手机" />
            </td>
        </tr>--%>
   <%--     <tr>
            <td align="right"><span class="color_red">*</span>最高学历：</td>
            <td>
                <cpt:select id="educate"  key="educate" onChange="initControlValue(this.id);"></cpt:select>
                <input type="hidden" name="educate_value"  class="required" value="" label="最高学历">
                <input type="hidden" name="educate_name" value="">
            </td>
            <td align="right"><span class="color_red">*</span>从事专业：</td>
            <td>
                <input type="text" label="从事专业" name="major_work" class="required" maxlength="50"/>
            </td>
        </tr>--%>

        <tr>

            <td align="right"><span class="color_red">*</span>从事专业：</td>
            <td>
                <input type="text" label="从事专业" name="major_work" class="required" maxlength="50"/>
            </td>
            <!-- </tr>
            <tr> -->
            <td align="right"><span class="color_red">*</span>项目分工：</td>
            <td colspan='1'><input type="text"  label="项目分工" name="work" required class="input_text required" maxlength="100" /></td>
        </tr>
        <%--<tr>
            <td align="right"><span class="color_red">*</span>项目分工：</td>
            <td colspan='3'><input type="text"  label="项目分工" name="work" required class="input_text required" maxlength="100" /></td>
        </tr>--%>

        <tr>
            <td align="right"><span class="color_red">*</span>所学专业：</td>
            <td ><input type="text"  label="所学专业" name="major" required class="input_text required" maxlength="30" /></td>
            <td></td>
            <td></td>
        </tr>
        <%--
        <c:if test="${param.needPrjNo=='1'}">
            <tr>
                <td align="right">在研项目批准号：</td>
                <td colspan="3">
                    <input type="text" label="在研项目批准号" name="prj_no" class="input_text notdisabled" />
                </td>
            </tr>
        </c:if>
         --%>
        <tr id="submit_psn_note" style="display:none">
            <td colspan="4">
                <span class="color_gray">如果您需要修改个人信息， 请保存申请书后点击菜单"管理">"个人信息维护"完成修改。</span>
            </td>
        </tr>

    </table>
</div>


<!--
    <div class="tab_box" id="fragment-tab4" style="display: none">
    </div>
 -->
<table width="100%" align="center">
    <tr>
        <td><input type="button"  class="button_01 notdisabled" id="savePsn" value="保存">
            &nbsp;<input type="button" id="cancel" class="button_01 notdisabled" value="取消" onclick="parent.tb_remove();">
        </td>
    </tr>
</table>
<br />
</body>
</html>